package com.token.iot.bratterycharging.gateway.utils;

import java.net.InetSocketAddress;

import io.netty.channel.ChannelHandlerContext;

public class ChannelHandlerContextUtil {

	
	
	static public String getIP(ChannelHandlerContext ctx ) {
		InetSocketAddress insocket = (InetSocketAddress) ctx.channel().remoteAddress();
        String clientIP = insocket.getAddress().getHostAddress();
        return clientIP;
	}
}
